<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建一个vue3应用</title>
    <script src="../public/vue_3.2.36.js"></script>
</head>
<body>
    <div id="app"><h1>App</h1>{{hh}}
        <button @click="hh++">点击加一</button>
        <hr>
    </div>

    <div id="app2">
        <h2>App2</h2>
        xiaoyugege name~:{{name}}</div>
    <script>
        const {createApp,ref} =Vue

        const app=createApp({
            name:'xiaoyu',
            setup(){
                const hh=ref(0)
                
                return {hh}
            }
        })

        const app2=createApp({
            name:"xiaoyugeg",
            setup(){
                const name=ref("luoyu")
                return {name}
            }
        })
        app.mount("#app")
        app2.mount("#app2")
    </script>
</body>
</html>